/**
 *Project: jh-framework
 *File: cn.xkshow.framework.spider.model.BlogXkUList.java 
 *Author: admin@xkshow.cn with the copyrite
 ****************************************************************
 *   VERSION       DATE            BY       CHANGE/COMMENT
 * --------------------------------------------------------------
 *    1.0        2013-4-19        xkshow.cn         create
 ****************************************************************
 *note:
 ***************************************************************/ 
package cn.xkshow.commons.spider.model;

import java.util.ArrayList;
import java.util.List;

import cn.xkshow.commons.spider.baseIface.HtmlCode;
import cn.xkshow.commons.spider.baseIface.UrlListI;

public class BlogXkUList extends HtmlCode implements UrlListI {
	private List<String> listUrl = new ArrayList<String>();
	
	public BlogXkUList(String url, String charset){
		super(url, charset);
	}	

	public List getListUrl() {
		// TODO Auto-generated method stub
		String strList = this.getHtmlStr();
		//System.out.println(strList);
		strList = this.getPattern("<div class=\"postcc\"></div><h1>.*?</h1>",strList);
		List list = this.getPatterArrayList("http(.*?)/archives/[0-9]{1,3}", strList);
		return list;
	}

	public void setListUrl(List<String> listUrl) {
		// TODO Auto-generated method stub
		this.listUrl = listUrl;
	}

}
